package cn.ryh.thymeleaf.freemarker;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * @ClassName FreeMarkerController
 * @Description TODO
 * @Author RaoYH
 */
@Controller
@RequestMapping(value = "/freeMarkerController")
public class FreeMarkerController {
    /**
     * 返回html模板.
     */
    @RequestMapping(value = "/helloFmtl")
    public String helloFmtl(Map<String,Object> map){

        map.put("hello","from freeMarkerController.helloFmtl");

        return"/helloFmtl";

    }
}
